package com.castday2.castday2.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.experimental.Accessors;

import java.sql.Date;
import java.time.LocalDateTime;

/**
 * @Author : 徐闯 mpcast
 * @Date : 2021-05-24 22:05:30
 * @Description :
 **/
@Data
@Accessors(chain = true) // set方法的链式调用  非必须
public class Student {
    private int id;
    private String name;
    private String sex;
    @TableLogic
    private int status;
    @Version
    private int version=1;
    @TableField( fill = FieldFill.INSERT)
    private LocalDateTime createdate;
    @TableField( fill = FieldFill.UPDATE)
    private LocalDateTime updateDate;
}
